package xin.marcher.module.inventory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xin.marcher.module.inventory.domain.entity.InventoryBucketOperateDO;

import java.util.List;

/**
 * 分桶操作
 */
@Mapper
public interface InventoryBucketOperateMapper extends BaseMapper<InventoryBucketOperateDO> {

    /**
     * 批量修改状态
     *
     * @param ids
     * @param operateStatus
     */
    void updateBatchStatus(@Param("ids") List<Long> ids, @Param("operateStatus") Integer operateStatus);

    /**
     * 分页查询分桶操作任务
     *
     * @param operateStatus
     * @param start
     * @param size
     * @return
     */
    List<InventoryBucketOperateDO> queryBucketOperateList(@Param("operateStatus") int operateStatus,
                                                          @Param("start") int start,
                                                          @Param("size") int size);

}
